package cn.xllyd.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mylxx
 * @since 2022-12-09
 */
@TableName("t_driver")
public class Driver extends Model<Driver> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer sex;
    private Long age;
    private String phone;
    @TableField("driver_num")
    private String driverNum;
    @TableField("motorcyle_type")
    private String motorcyleType;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Long getAge() {
        return age;
    }

    public void setAge(Long age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDriverNum() {
        return driverNum;
    }

    public void setDriverNum(String driverNum) {
        this.driverNum = driverNum;
    }

    public String getMotorcyleType() {
        return motorcyleType;
    }

    public void setMotorcyleType(String motorcyleType) {
        this.motorcyleType = motorcyleType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Driver{" +
        ", id=" + id +
        ", name=" + name +
        ", sex=" + sex +
        ", age=" + age +
        ", phone=" + phone +
        ", driverNum=" + driverNum +
        ", motorcyleType=" + motorcyleType +
        "}";
    }
}
